import request from "../axios/request";

function getManagerParkLotInfoByConditions(userId){
    return new Promise((resolve, reject) => {
        request('get', '/parkLot/getManagerParkLotInfoByConditions', {
            pageNumber: 1,
            pageSize: 2,
            userId: userId
        })
            .then(res => {
                resolve(res)
            }, err => {
                reject(err)
            })
    })
}

function getManagerParkLotSearchResultInfo(managerId){
    return new Promise((resolve, reject) => {
        request('get', '/parkLot/getManagerParkLotSearchResultInfo', {
            managerId: managerId
        })
            .then(res => {
                resolve(res)
            }, err => {
                reject(err)
            })
    })
}

export {
    getManagerParkLotInfoByConditions,
    getManagerParkLotSearchResultInfo
}